<template>
    <div class="flex-y-center pointer" @click="onFileOpen(urls)">
        <div class="left-img">
            <img src="@/assets/img/attachment.png"/>
        </div>
        <div class="right-title ml-sm">{{name}}</div>
    </div>
</template>
<script setup>
import { onFileOpen } from "@/utils/index.js";
const props = defineProps({
    name:{
        type:String,
        default:'附件'
    },
    urls:{
        type:[String,Array],
        default:[]
    },
})
</script>

<style lang="less" scoped>
.left-img {
    width: 16px;
    height: 16px;
}
.right-title {
    font-size: 14px;
    color: #5E6163;
}
</style>